package com.lemner.ke.model.fail;

import com.lemner.ke.base.BaseListener;
import com.lemner.ke.base.BaseModel;
import com.lemner.ke.base.BaseObjectBean;

/**
 * 注册登录失败后，重新获取
 *
 * @author 杨烨
 * @date 2018/9/11
 */

public class FailModel extends BaseModel<BaseObjectBean<String>> {
    public void login(String mobile, String pswd, final BaseListener listener) {
        call = service.login2(mobile, pswd);
        callEnqueue(call, listener);
    }

    public void loginMobile(String mobile, String identifyingCode, final BaseListener listener) {
        call = service.loginMobile2(mobile, identifyingCode);
        callEnqueue(call, listener);
    }

    public void register(String mobile, String pswd, String name, final BaseListener listener) {
        call = service.register2(mobile, pswd, name);
        callEnqueue(call, listener);
    }
}
